fontchooser: Fix leak
authorBenjamin Otte <otte@redhat.com>
Tue, 20 Sep 2011 22:14:02 +0000 (00:14 +0200)
committerBenjamin Otte <otte@redhat.com>
Thu, 22 Sep 2011 19:44:05 +0000 (21:44 +0200)
the path variable is set, not filled in.

gtk/gtkfontchooserwidget.c

index f99ec3585103684d3b184519c4010bb6d1558066..f80c9002133b352fb3585bdea0399f06310c0730 100644 (file)
@@ -374,7 +374,7 @@ cursor_changed_cb (GtkTreeView *treeview,
   gint  i, n_sizes;
 
   GtkTreeIter  iter;
-  GtkTreePath *path = gtk_tree_path_new ();
+  GtkTreePath *path = NULL;
 
   gtk_tree_view_get_cursor (treeview, &path, NULL);